package com.winz.cultureapp.adapter.xrcv;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.mine.xrecyclerview.rcvadapter.BaseRcvAdapter;
import com.mine.xrecyclerview.rcvadapter.ViewHolder;
import com.winz.cultureapp.R;
import com.winz.cultureapp.entity.ShowActivityListBean;

import java.util.List;

import jp.wasabeef.glide.transformations.RoundedCornersTransformation;

/**
 * 志愿活动--展示活动
 */

public class ShowActivityAdapter extends BaseRcvAdapter<ShowActivityListBean.DataBean.ListBean> {

    public ShowActivityAdapter(Context context, List<ShowActivityListBean.DataBean.ListBean> datas, int... resid) {
        super(context, datas, resid);
    }

    @Override
    public void convert(ViewHolder holder, ShowActivityListBean.DataBean.ListBean data, int itemViewType) {

    }

    @Override
    public void convert(int position, ViewHolder holder, ShowActivityListBean.DataBean.ListBean listBean, int itemViewType) {
        super.convert(position, holder, listBean, itemViewType);
        if (itemViewType != -1){

//            holder.setText(R.id.tv_title,data.article_title)
//                    .setText(R.id.tv_content,data.article_description)
//                    .setText(R.id.tv_time,data.add_time);

//            //圆角处理
//            Glide.with(mContext)
//                    .load(R.drawable.test_banner1)
//                    .bitmapTransform(new RoundedCornersTransformation(mContext,16,0, RoundedCornersTransformation.CornerType.TOP))
//                    .error(R.drawable.test_banner1)
//                    .into((ImageView) holder.getView(R.id.iv_pic));

        }


    }
}
